package com.yipao.db.dao.order;

import java.util.List;

import com.yipao.db.domain.order.OrderGoods;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.order.YipaoOrderGoodsExample;

/**
 * 订单商品
 *
 * @author tianhao
 */
public interface OrderGoodsMapper {

    long countByExample(YipaoOrderGoodsExample example);


    int deleteByExample(YipaoOrderGoodsExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(OrderGoods record);


    int insertSelective(OrderGoods record);


    OrderGoods selectOneByExample(YipaoOrderGoodsExample example);


    OrderGoods selectOneByExampleSelective(@Param("example") YipaoOrderGoodsExample example, @Param("selective") OrderGoods.Column... selective);


    List<OrderGoods> selectByExampleSelective(@Param("example") YipaoOrderGoodsExample example, @Param("selective") OrderGoods.Column... selective);


    List<OrderGoods> selectByExample(YipaoOrderGoodsExample example);


    OrderGoods selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") OrderGoods.Column... selective);


    OrderGoods selectByPrimaryKey(Integer id);


    OrderGoods selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") OrderGoods record, @Param("example") YipaoOrderGoodsExample example);


    int updateByExample(@Param("record") OrderGoods record, @Param("example") YipaoOrderGoodsExample example);


    int updateByPrimaryKeySelective(OrderGoods record);


    int updateByPrimaryKey(OrderGoods record);


    int logicalDeleteByExample(@Param("example") YipaoOrderGoodsExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
